home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / excel / we0801.exe / TXTRDR.XLA (.txt) < prev    next >
Excel Spreadsheet  |  1993-05-10  |  15KB  |  446 lines

  1. Sheet: 
  2. (0, 0)        names
  3. (0, 1)          commands
  4. (0, 2)        comments
  5. (0, 3)        
  6. (0, 4)        DIALOGS
  7. (0, 5)        
  8. (0, 6)        
  9. (0, 7)        
  10. (0, 8)        
  11. (0, 9)        
  12. (0, 10)        
  13. (0, 11)        
  14. (0, 12)        
  15. (0, 13)        MENUS
  16. (0, 14)        
  17. (0, 15)        
  18. (0, 16)        
  19. (0, 17)        
  20. (0, 18)        
  21. (1, 0)        
  22. (1, 1)        
  23. (1, 2)        
  24. (1, 3)        
  25. (1, 4)        type
  26. (1, 5)        x
  27. (1, 6)        y
  28. (1, 7)        wide
  29. (1, 8)        high
  30. (1, 9)        text
  31. (1, 10)        init/result
  32. (1, 11)        names
  33. (1, 12)        
  34. (1, 13)        Names
  35. (1, 14)        Command
  36. (1, 15)        Macro
  37. (1, 16)        Key
  38. (1, 17)        Status Bar Text
  39. (1, 18)        Help
  40. (2, 0)        
  41. (2, 1)          Summary Information
  42. (2, 2)        
  43. (2, 3)        
  44. (2, 4)        box
  45. (2, 5)        
  46. (2, 6)        
  47. (2, 7)        
  48. (2, 8)        
  49. (2, 9)        
  50. (2, 10)        
  51. (2, 11)        
  52. (2, 12)        
  53. (2, 13)        cmdTextRead
  54. (2, 14)        Open T&ext
  55. (2, 15)        ReadText
  56. (2, 16)        
  57. (2, 17)        Reads text file as text only
  58. (2, 18)        
  59. (3, 0)        Title:
  60. (3, 1)        Text Reader
  61. (3, 2)        
  62. (3, 4)        
  63. (3, 5)        
  64. (3, 6)        
  65. (3, 7)        262
  66. (3, 8)        170
  67. (3, 9)        
  68. (3, 10)        
  69. (4, 0)        Version:
  70. (4, 1)          v2.0
  71. (4, 2)        
  72. (4, 4)        14
  73. (4, 5)        32
  74. (4, 6)        9
  75. (4, 7)        199
  76. (4, 8)        102
  77. (4, 9)        Column Delimiter
  78. (4, 10)        
  79. (5, 0)        Author
  80. (5, 1)        John Hopper
  81. (5, 2)        
  82. (5, 4)        11
  83. (5, 5)        
  84. (5, 6)        
  85. (5, 7)        
  86. (5, 8)        
  87. (5, 9)        
  88. (5, 10)        3
  89. (6, 0)        Modified by
  90. (6, 1)        Mark Hopwood
  91. (6, 2)        
  92. (6, 4)        112
  93. (6, 5)        
  94. (6, 6)        
  95. (6, 7)        
  96. (6, 8)        
  97. (6, 9)        &Tab
  98. (6, 10)        
  99. (7, 0)        Corporation:
  100. (7, 1)        Microsoft Corp.
  101. (7, 2)        
  102. (7, 4)        112
  103. (7, 5)        
  104. (7, 6)        
  105. (7, 7)        
  106. (7, 8)        
  107. (7, 9)        &Comma
  108. (7, 10)        
  109. (8, 0)        Creation Date:
  110. (8, 1)        Monday, September 21, 1992
  111. (8, 2)        
  112. (8, 4)        112
  113. (8, 5)        
  114. (8, 6)        
  115. (8, 7)        
  116. (8, 8)        
  117. (8, 9)        &Space
  118. (8, 10)        
  119. (9, 0)        
  120. (9, 1)        
  121. (9, 2)        
  122. (9, 4)        112
  123. (9, 5)        
  124. (9, 6)        
  125. (9, 7)        
  126. (9, 8)        
  127. (9, 9)        &Other:
  128. (9, 10)        
  129. (10, 0)        auto_open
  130. (10, 1)          auto_open
  131. (10, 2)        
  132. (10, 4)        206
  133. (10, 5)        125
  134. (10, 6)        72
  135. (10, 7)        30
  136. (10, 8)        
  137. (10, 9)        
  138. (10, 10)        
  139. (11, 0)        mco00s.MacroName
  140. (11, 1)        Text Reade
  141. (11, 2)        name of this document
  142. (11, 4)        1
  143. (11, 5)        30
  144. (11, 6)        126
  145. (11, 7)        88
  146. (11, 8)        
  147. (11, 9)        OK
  148. (11, 10)        
  149. (12, 0)        
  150. (12, 1)        
  151. (12, 2)        
  152. (12, 4)        2
  153. (12, 5)        142
  154. (12, 6)        127
  155. (12, 7)        88
  156. (12, 8)        
  157. (12, 9)        Cancel
  158. (12, 10)        
  159. (13, 0)        
  160. (13, 1)        5
  161. (13, 2)        Look for position for insert
  162. (14, 0)        
  163. (14, 1)        TRUE
  164. (14, 2)        If not already added...
  165. (15, 0)        
  166. (15, 1)        5
  167. (15, 2)          add command
  168. (15, 4)        ud01.Open
  169. (15, 5)        
  170. (15, 6)        
  171. (15, 7)        
  172. (15, 8)        
  173. (15, 9)        
  174. (15, 10)        
  175. (16, 0)        
  176. (16, 1)        4
  177. (16, 2)        
  178. (16, 7)        538
  179. (16, 8)        137
  180. (16, 10)        2
  181. (17, 0)        
  182. (17, 1)        TRUE
  183. (17, 2)        
  184. (17, 4)        5
  185. (17, 5)        10
  186. (17, 6)        6
  187. (17, 9)        Select the text file to be opened:
  188. (18, 0)        
  189. (18, 1)        TRUE
  190. (18, 2)        Else (already added)...
  191. (18, 4)        6
  192. (18, 5)        10
  193. (18, 6)        27
  194. (18, 7)        160
  195. (18, 10)        *.txt
  196. (19, 0)        
  197. (19, 1)        #N/A!
  198. (19, 2)          Delete old one, just in case
  199. (19, 4)        18
  200. (19, 5)        10
  201. (19, 6)        47
  202. (19, 7)        160
  203. (19, 8)        84
  204. (20, 0)        
  205. (20, 1)        5
  206. (20, 2)          add command
  207. (20, 4)        19
  208. (20, 5)        178
  209. (20, 6)        47
  210. (20, 7)        160
  211. (20, 8)        84
  212. (21, 0)        
  213. (21, 1)        FALSE
  214. (21, 2)        
  215. (21, 4)        5
  216. (21, 5)        178
  217. (21, 6)        30
  218. (21, 7)        300
  219. (21, 8)        12
  220. (22, 0)        
  221. (22, 1)        TRUE
  222. (22, 2)        
  223. (22, 4)        1
  224. (22, 5)        439
  225. (22, 6)        62
  226. (22, 7)        88
  227. (22, 9)        OK
  228. (23, 0)        
  229. (23, 1)        TRUE
  230. (23, 2)        
  231. (23, 4)        2
  232. (23, 5)        439
  233. (23, 6)        91
  234. (23, 7)        88
  235. (23, 9)        Cancel
  236. (24, 0)        
  237. (24, 1)        
  238. (24, 2)        
  239. (25, 0)        
  240. (25, 1)        
  241. (25, 2)        
  242. (26, 0)        auto_close
  243. (26, 1)          auto_close
  244. (26, 2)        
  245. (27, 0)        
  246. (27, 1)          remove menus we added here
  247. (27, 2)        
  248. (28, 0)        mcc04.DeleteMenus.
  249. (28, 1)        mcc04.DeleteMenus.
  250. (28, 2)        
  251. (29, 0)        
  252. (29, 1)        
  253. (29, 2)        
  254. (30, 0)        
  255. (30, 1)        TRUE
  256. (30, 2)        
  257. (31, 0)        
  258. (31, 1)        TRUE
  259. (31, 2)        Delete command
  260. (32, 0)        
  261. (32, 1)        TRUE
  262. (32, 2)        
  263. (33, 0)        
  264. (33, 1)        TRUE
  265. (33, 2)        
  266. (34, 0)        
  267. (34, 1)        TRUE
  268. (34, 2)        
  269. (35, 0)        
  270. (35, 1)        
  271. (35, 2)        
  272. (36, 0)        
  273. (36, 1)        
  274. (36, 2)        
  275. (37, 0)        ReadText
  276. (37, 1)        ReadText
  277. (37, 2)        
  278. (38, 0)        
  279. (38, 1)        TRUE
  280. (38, 2)        Sets the value of the get dialog to look for text files
  281. (39, 0)        doopen
  282. (39, 1)        FALSE
  283. (39, 2)        Get dialog
  284. (40, 0)        
  285. (40, 1)        TRUE
  286. (40, 2)        Quit if open dialog was canceled
  287. (41, 0)        
  288. (41, 1)        TRUE
  289. (41, 2)        
  290. (42, 0)        
  291. (42, 1)        TRUE
  292. (42, 2)        Resets delimiter dialog settings
  293. (43, 0)        
  294. (43, 1)        TRUE
  295. (43, 2)        Resets delimiter dialog settings
  296. (44, 0)        
  297. (44, 1)        TRUE
  298. (44, 2)        Resets delimiter dialog settings
  299. (45, 0)        
  300. (45, 1)        FALSE
  301. (45, 2)        Delimiter dialog
  302. (46, 0)        
  303. (46, 1)        TRUE
  304. (46, 2)        
  305. (47, 0)        
  306. (47, 1)        TRUE
  307. (47, 2)        
  308. (48, 0)        
  309. (48, 1)        TRUE
  310. (48, 2)        
  311. (49, 0)        
  312. (49, 1)        TRUE
  313. (49, 2)        
  314. (50, 0)        
  315. (50, 1)        TRUE
  316. (50, 2)        
  317. (51, 0)        
  318. (51, 1)        FALSE
  319. (51, 2)        
  320. (52, 0)        
  321. (52, 1)        TRUE
  322. (52, 2)        
  323. (53, 0)        
  324. (53, 1)        TRUE
  325. (53, 2)        
  326. (54, 0)        
  327. (54, 1)        TRUE
  328. (54, 2)        Sets the delimiter to a tab
  329. (55, 0)        
  330. (55, 1)        TRUE
  331. (55, 2)        
  332. (56, 0)        
  333. (56, 1)        FALSE
  334. (56, 2)        Sets the delimiter to a comma
  335. (57, 0)        
  336. (57, 1)        TRUE
  337. (57, 2)        
  338. (58, 0)        
  339. (58, 1)        FALSE
  340. (58, 2)        Sets the delimiter to a space
  341. (59, 0)        
  342. (59, 1)        TRUE
  343. (59, 2)        
  344. (60, 0)        
  345. (60, 1)        TRUE
  346. (60, 2)        Sets the delimiter to whatever is typed into the delimiter dialog
  347. (61, 0)        
  348. (61, 1)        TRUE
  349. (61, 2)        
  350. (62, 0)        
  351. (62, 1)        TRUE
  352. (62, 2)        If the other delimiter choice was made this makes sure that a single character is entered as the delimiter
  353. (63, 0)        
  354. (63, 1)        TRUE
  355. (63, 2)        
  356. (64, 0)        
  357. (64, 1)        TRUE
  358. (64, 2)        
  359. (65, 0)        
  360. (65, 1)        FALSE
  361. (65, 2)        
  362. (66, 0)        
  363. (66, 1)        TRUE
  364. (66, 2)        Create new sheet to import data to
  365. (67, 0)        
  366. (67, 1)        Sheet
  367. (67, 2)        Remember sheet name to put values in
  368. (68, 0)        
  369. (68, 1)        0
  370. (68, 2)        Open the text file
  371. (69, 0)        
  372. (69, 1)        TRUE
  373. (69, 2)        Set current destination column
  374. (70, 0)        
  375. (70, 1)        TRUE
  376. (70, 2)        Set current destination row
  377. (71, 0)        
  378. (71, 1)        TRUE
  379. (71, 2)        Set word string (starts with ' so it's text)
  380. (72, 0)        
  381. (72, 1)        TRUE
  382. (72, 2)        Read a character
  383. (73, 0)        
  384. (73, 1)        TRUE
  385. (73, 2)        If error, done with file
  386. (74, 0)        
  387. (74, 1)        TRUE
  388. (74, 2)        If tab....
  389. (75, 0)        
  390. (75, 1)        TRUE
  391. (75, 2)           Enter "word"
  392. (76, 0)        
  393. (76, 1)        TRUE
  394. (76, 2)           move over one column
  395. (77, 0)        
  396. (77, 1)        TRUE
  397. (77, 2)           Get more stuff
  398. (78, 0)        
  399. (78, 1)        TRUE
  400. (78, 2)        If CR...
  401. (79, 0)        
  402. (79, 1)        TRUE
  403. (79, 2)            skip
  404. (80, 0)        
  405. (80, 1)        TRUE
  406. (80, 2)        If LF...
  407. (81, 0)        
  408. (81, 1)        TRUE
  409. (81, 2)           Enter "word"
  410. (82, 0)        
  411. (82, 1)        TRUE
  412. (82, 2)           move back to first column
  413. (83, 0)        
  414. (83, 1)        TRUE
  415. (83, 2)           and down one row
  416. (84, 0)        
  417. (84, 1)        TRUE
  418. (84, 2)           Get more stuff
  419. (85, 0)        
  420. (85, 1)        TRUE
  421. (85, 2)        Else ("regular" character)
  422. (86, 0)        
  423. (86, 1)        TRUE
  424. (86, 2)           put on the end of the "word"
  425. (87, 0)        
  426. (87, 1)        TRUE
  427. (87, 2)        End.if
  428. (88, 0)        
  429. (88, 1)        TRUE
  430. (88, 2)        Loop for more
  431. (89, 0)        
  432. (89, 1)        
  433. (89, 2)        
  434. (90, 0)        Done
  435. (90, 1)        
  436. (90, 2)        Done (all characters read)
  437. (91, 0)        
  438. (91, 1)        TRUE
  439. (91, 2)        Put last "word" in
  440. (92, 0)        CloseIt
  441. (92, 1)        0
  442. (92, 2)        Close the file
  443. (93, 0)        
  444. (93, 1)        TRUE
  445. (93, 2)        
  446.